<?php $this->load->view('layout/jingqu/header');?>
<div class="order-page screen-width clearfix">
    <div class="order-left">
        <?php $this->load->view('layout/account_left');?>
    </div>
    <div class="order-right">
        <?php echo execute_alert_message();?>
        <div class="your-choice">
            <h5>个人信息</h5>
            <ul class="clearfix choice-ul">
                <li class="active">
                    <a href="<?php echo site_url('customer/personal');?>">个人信息</a>
                </li>
                <li>
                    <a href="<?php echo site_url('customer/accountRecord');?>">账号信息</a>
                </li>
                <li>
                    <a href="<?php echo site_url('customer/JuniorMember');?>">检票帐号</a>
                </li>
                <li>
                    <a href="<?php echo site_url('customer/modifyPw');?>">修改密码</a>
                </li>
                <!-- <li>
                    <a href="<?php echo site_url('customer/accountSecurity');?>">账号安全</a>
                </li> -->
            </ul>
        </div>
        <div class="man-form clearfix">
            <div class="man-left">
                <form class="public-validate-form" action="<?php echo site_url('customer/editPostPersonal') ?>" method="post" enctype="multipart/form-data">
                    <dl>
                        <dt>基本资料</dt>
                        <dd>
                            <h6><em>* </em>用户昵称</h6>
                            <input type="hidden" name="uid" value="<?php echo $useInfo->uid;?>"/>
                            <input type="text" name="alias_name" value="<?php echo $useInfo->alias_name;?>" class="man-min required"/>
                        </dd>
                        <dd>
                            <h6><em>* </em>企业名称</h6>
                            <input type="text" name="company" value="<?php echo $useInfo->company;?>" class="required"/>
                        </dd>
                        <dd>
                            <h6><em>* </em>营业执照</h6>
                            <input type="text" name="business_licen" value="<?php echo $useInfo->business_licen;?>" class="required"/>
                        </dd>
                    </dl>
                    <dl>
                        <dt>联系资料</dt>
                        <dd> 
                            <h6><em>* </em>真实姓名</h6>
                            <input type="text" name="contacter" value="<?php echo $useInfo->contacter;?>" class="man-min required"/>
                        </dd>
                        <dd>
                             <h6><em>* </em>常用手机</h6>
                             <input type="text" name="cellphone" value="<?php echo $useInfo->cellphone;?>" class="mobile required"/>
                        </dd>
                        <dd>
                            <h6>座机</h6>
                            <input type="text" name="telephone_area" value="<?php echo subStrTelephone($useInfo->telephone, true);?>" class="max-webmin">
                            <span class="man-br">—</span>
                            <input type="text" name="telephone_detail" value="<?php echo subStrTelephone($useInfo->telephone);?>" class="max-webmax">
                        </dd>
                        <dd>
                            <h6><em>* </em>电子邮件</h6>
                            <input type="text" name="email" value="<?php echo $useInfo->email;?>" class="email required"/>
                        </dd>
                        <dd>
                            <h6>传真</h6>
                            <input type="text" name="fax_area" value="<?php echo subStrTelephone($useInfo->fax, true);?>" class="max-webmin">
                            <span class="man-br">—</span>
                            <input type="text" name="fax_detail" value="<?php echo subStrTelephone($useInfo->fax);?>" class="max-webmax">
                        </dd>
                        <dd>
                            <h6>详细地址</h6>
                            <input type="text" name="address" value="<?php echo $useInfo->address;?>">
                        </dd>
                    </dl>
                    <dl>
                        <dt>提现资料</dt>
                        <dd>
                            <h6>提现银行</h6>
                            <select name="pay_method" class="form-control">
                                <option value="0">请选择</option>
                                <?php foreach($payMethod->result() as $item):?>
                                <option value="<?php echo $item->bank_id;?>" <?php if ($item->bank_id==$useInfo->pay_method) :?> selected="selected"<?php endif;?>><?php echo $item->bank_name;?></option>
                                <?php endforeach;?>
                            </select>
                        </dd>
                        <dd>
                            <h6>提现账号</h6>
                            <input type="text" name="bank_account" value="<?php echo $useInfo->bank_account;?>" class="number">
                        </dd>
                    </dl>
                    <dl>
                        <dt>账户信息</dt>
                        <dd>
                            <h6>余额</h6>
                            <i class="man-money"><span>¥</span><?php echo $balance->amount_carry;?></i>
                        </dd>
                    </dl>
                    <button type="submit" class="man-submit">保存</button>
                </form>
            </div>
            <div class="man-right">
                <div class="man-portrait clearfix">
                    <div class="man-img">
                        <?php if (!empty($useInfo->personal_photo)) :?>
                            <img src="<?php echo $this->config->show_image_url($useInfo->personal_photo);?>">
                        <?php else :?>
                            <img src="skins/images/photo0.jpg">
                        <?php endif;?>
                        <!-- <a href="#" class="man-edit">编辑头像</a> -->
                    </div>
                    <div class="man-imgtext">
                        <p>用户账号：<?php echo $useInfo->user_name;?></p>
                        <p>用户类型：<span><?php echo $this->userTypeName;?></span></p>
                    </div>
                </div>
                <p class="man-notes">注：请填写真实的资料</p>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('layout/jingqu/footer');?>